home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD ROM Paradise Collection 4
/
CD ROM Paradise Collection 4 1995 Nov.iso
/
music
/
cthugha5.zip
/
CTHU5SRC.ZIP
/
LUTS.C
< prev
next >
Wrap
Text File
|
1994-08-19
|
783b
|
41 lines
void FillLUTBuffer(int pal)
{
/* fills the buffer with 8 bit values */
curpal=pal%numluts;
memcpy(LUTbuffer,LUTfiles[curpal],768);
_asm {
push di;
push si;
push ds;
push ss;
push sp;
push bp;
mov dx,0x03da
WaitVS:
in al,dx
test al,0x08
jz WaitVS ;vertical sync is active high (1 = active)
mov ax,1012h;
mov bx,0;
mov cx,100h;
mov dx,SEG LUTbuffer;
mov es,dx;
mov dx,OFFSET LUTbuffer;
int 10h;
pop bp;
pop sp;
pop ss;
pop ds;
pop si;
pop di;
}
}